<!DOCTYPE html>
<html>
<head>
  <meta content="IE=11.0000" http-equiv="X-Ua-Compatible">
  <meta charset="utf-8">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-Ua-Compatible" content="IE=edge,chrome=1">

  <title>弹窗详情</title>
  <!--region 引入公用js和css -->
  <link href="../assets/plugins/animate/animate.css" rel="stylesheet">
  <link href="../assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/fullcalendar/fullcalendar.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/base/css/components.css" rel="stylesheet" id="style_components" type="text/css"/>
  <link href="../assets/base/css/plugins.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/ditop/layout.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/datatables/datatables.min.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/bootstrap-table/bootstrap-table.css" rel="stylesheet">
  <link href="../assets/plugins/bootstrap-table/extensions/tree-column/bootstrap-table-tree-column.css" rel="stylesheet">
  <link href="../assets/plugins/bootstrap-toastr/toastr.css" rel="stylesheet">
  <link rel="stylesheet" href="../assets/plugins/sweetalert/sweetalert.css">
  <link rel="stylesheet" href="../assets/plugins/layer/theme/default/layer.css">
  <link href="../assets/plugins/select2/css/select2.min.css" rel="stylesheet">
  <link href="../assets/plugins/icheck/skins/flat/aero.css" rel="stylesheet">
  <link href="../assets/ditop/ditop.css" rel="stylesheet">
  <link href="../assets/ditop/style/ztree/style9/treestyle.css" rel="stylesheet">
  <link href="../assets/plugins/bootstrap-touchspin/bootstrap.touchspin.css" rel="stylesheet">

  <link href="../assets/plugins/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/bootstrap-daterangepicker-extend/daterangepicker-ext.css" rel="stylesheet" type="text/css"/>

  <script src="../assets/plugins/jquery/jquery.min.js"></script>
  <script src="../assets/plugins/bootstrap/js/bootstrap.min.js"></script>
  <script src="../assets/plugins/bootstrap-toastr/toastr.js"></script>
  <script src="../assets/plugins/art-template/template.js"></script>
  <script src="../assets/plugins/layer/layer.js"></script>
  <script src="../assets/ditop/ditop.js"></script>
  <!--endregion-->

  <link href="../assets/module/gcjsy/css/public.css" rel="stylesheet"> <!-- CSS Customization -->
  <link href="../assets/module/gcjsy/css/pagination.css" rel="stylesheet">

  <link rel="stylesheet" href="src/split.css">

</head>
<body>


<div class="split-module center-block bg-white" style="width: 1000px">
  <div class="tr-head " style="height: 130px;">
    <div class="flex">
      <div class="tr-ico tr-ico-small margin-right-20" style="background: #6E4FF7">
        <i class="dtFont dtFont-xiangmujiesuanshu-xian"></i>
      </div>
      <div class="tr-con">
        <h3 class="title2 margin-bottom-5">中铁二十四局集团有限公司合安高铁引入合肥枢纽工程一标 <span class="tag-orange">房屋建筑</span> <span class="tag-green">合格</span></h3>
        <p class="gray">6532002110050123/SG001</p>
      </div>
    </div>
    <ul class="tab-ha clearfix">
      <li class="active">单体信息</li>
      <li>处理轨迹</li>
    </ul>
  </div>

  <div class="tab-panes">
    <section class="tab-pane-item active">
      <div class="padding-lr-20 padding-top-30 padding-bottom-30">
        <h2 class="title2">工程基本信息：</h2>
        <div class="currencyTab margin-bottom-30">
          <table class="table table-bordered">
            <tbody>
            <tr>
              <td class="key" width="120">项目名称</td>
              <td colspan="3">中铁二十四局集团有限公司合安高铁引入合肥枢纽</td>
            </tr>
            <tr>
              <td class="key">详细地址</td>
              <td colspan="3">安徽省合肥市蜀山区创新大道2800号创新产业园2期</td>
            </tr>
            <tr>
              <td class="key">项目负责人</td>
              <td width="450">沈亚军</td>
              <td class="key" width="120">负责人电话</td>
              <td>18612448301</td>
            </tr>
            </tbody>
          </table>
        </div>

        <h2 class="title2">单体信息：</h2>
        <div class="currencyTab margin-bottom-30">
          <table class="table table-bordered">
            <thead>
            <tr>
              <th class="text-center">序号</th>
              <th>单体名称</th>
              <th>分部分项范围</th>
            </tr>
            </thead>
            <tbody>
            <tr>
              <td class="text-center">1</td>
              <td>
                <p class="text-nowrap nowrap">人民电器配套产业园项目-S2地块05#-08#厂房、13#-16#厂房</p>
              </td>
              <td><b class="black">分项工程1、分项工程2、分项工程3、分项工程4</b></td>
            </tr>
            <tr>
              <td class="text-center">1</td>
              <td>
                <p class="text-nowrap nowrap">人民电器配套产业园项目-S2地块05#-08#厂房、13#-16#厂房</p>
              </td>
              <td><b class="black">分项工程1、分项工程2、分项工程3、分项工程4</b></td>
            </tr>
            <tr>
              <td class="text-center">1</td>
              <td>
                <p class="text-nowrap nowrap">人民电器配套产业园项目-S2地块05#-08#厂房、13#-16#厂房</p>
              </td>
              <td><b class="black">分项工程1、分项工程2、分项工程3、分项工程4</b></td>
            </tr>
            <tr>
              <td class="text-center">1</td>
              <td>
                <p class="text-nowrap nowrap">人民电器配套产业园项目-S2地块05#-08#厂房、13#-16#厂房</p>
              </td>
              <td><b class="black">分项工程1、分项工程2、分项工程3、分项工程4</b></td>
            </tr>
            </tbody>
          </table>
        </div>

        <h2 class="title2">附件文件</h2>
        <div class="annex-list">
          <section class="annex-flex">
            <div class="annex-left">
              <div class="annex-icon pdf"></div>
              <div class="annex-con">
                <a href="#">这里是附件这里是附件这里是附件.JPG</a>
                <p>35.74MB</p>
              </div>
            </div>
            <div class="annex-right">
              <a href="#"><i class="dtFont dtFont-sousuo1"></i> 查看</a>
              <a class="margin-left-20" href="#"><i class="dtFont dtFont-xiazai"></i> 下载</a>
            </div>
          </section>
          <section class="annex-flex">
            <div class="annex-left">
              <div class="annex-icon pdf"></div>
              <div class="annex-con">
                <a href="#">这里是附件这里是附件这里是附件.JPG</a>
                <p>35.74MB</p>
              </div>
            </div>
            <div class="annex-right">
              <a href="#"><i class="dtFont dtFont-sousuo1"></i> 查看</a>
              <a class="margin-left-20" href="#"><i class="dtFont dtFont-xiazai"></i> 下载</a>
            </div>
          </section>
        </div>

      </div>
    </section>
    <section class="tab-pane-item">
      <div class="padding-lr-20 padding-top-30 padding-bottom-30">
        <div class="dt-record ">

          <div class="record-item">
            <div class="record-time">2015-09-04 20：20</div>
            <i class="record-icon-circle"></i>
            <div class="record-container-info">
              <div class="record-info-title">确认通过
              </div>
              <div class="record-info-detail">
                合肥市住建局    刘二
              </div>
            </div>
          </div>

          <div class="record-item">
            <div class="record-time">2015-09-03 20：20</div>
            <i class="record-icon-circle"></i>
            <div class="record-container-info">
              <div class="record-info-title">重新提交</div>
              <div class="record-info-detail">
                合肥市住建局    刘二
              </div>
            </div>
          </div>

          <div class="record-item">
            <div class="record-time">2015-09-02 20：20</div>
            <i class="record-icon-circle"></i>
            <div class="record-container-info">
              <div class="record-info-title"><span class="red">打回修改</span></div>
              <div class="record-info-detail">
                合肥市住建局    刘二
              </div>
            </div>
          </div>


        </div>
      </div>
    </section>
  </div>

</div>


<!--region 引入公用js和css -->
<script src="../assets/plugins/sweetalert/sweetalert.min.js"></script>
<script src="../assets/plugins/jquery.blockui.min.js"></script>
<script src="../assets/plugins/js.cookie.min.js"></script>
<script src="../assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="../assets/plugins/jquery.blockui.min.js"></script>
<script src="../assets/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
<script src="../assets/plugins/bootstrap-touchspin/bootstrap.touchspin.js"></script>
<script src="../assets/plugins/moment.min.js"></script>
<script src="../assets/plugins/bootstrap-daterangepicker/daterangepicker.min.js"></script>
<script src="../assets/plugins/counterup/jquery.waypoints.min.js"></script>
<script src="../assets/plugins/counterup/jquery.counterup.min.js"></script>
<script src="../assets/plugins/fullcalendar/fullcalendar.js"></script>
<script src="../assets/plugins/horizontal-timeline/horizontal-timeline.js"></script>
<script src="../assets/plugins/jquery.sparkline.min.js"></script>
<script src="../assets/plugins/select2/js/select2.js"></script>
<script src="../assets/plugins/select2/js/i18n/zh-CN.js"></script>
<script src="../assets/plugins/ztree/jquery.ztree.all.js"></script>
<script src="../assets/plugins/jquery-form/jquery.form.js"></script>
<script src="../assets/plugins/jquery-validator/jquery.placeholder.min.js"></script>
<script src="../assets/plugins/jquery-validator/jquery.validate.js"></script>
<script src="../assets/plugins/jquery-validator/jquery.validate.custom.js"></script>
<script src="../assets/plugins/jquery-validator/localization/messages_zh.js"></script>
<script src="../assets/plugins/jquery-validator/additional-methods.js"></script>
<script src="../assets/plugins/bootstrap-growl/jquery.bootstrap-growl.js"></script>
<script src="../assets/plugins/bootstrap-table/bootstrap-table.js"></script>
<script src="../assets/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
<script src="../assets/plugins/bootstrap-table/extensions/tree-column/bootstrap-table-tree-column.js"></script>
<script src="../assets/base/scripts/app.js"></script>
<script src="../assets/base/scripts/theme.js"></script>
<script src="../assets/ditop/ditop-addition.js"></script>
<script src="../assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js" type="text/javascript"></script>
<script src="../assets/plugins/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"
        type="text/javascript"></script>
<script type="text/javascript" src="../assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"
        charset="UTF-8"></script>
<script type="text/javascript"
        src="../assets/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
        charset="UTF-8"></script>
<script src="../assets/plugins/jquery-validator/jquery.validate.custom.js"></script>
<script src="../assets/ditop/layout.js"></script>
<script src="../assets/module/gcjsy/js/content.js"></script>

<script>
  $('.tab-ha').children('li').on('click',function () {
    const index = $(this).index();
    $(this).addClass('active').siblings().removeClass('active');
    $('.tab-panes').children('section').eq(index).addClass('active').siblings().removeClass('active')
  });

  const treeData = [
  {
    "code": "XXXXX",
    "name": "地基与基础",
    "children":[
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      }, {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
    ]
  },{
    "code": "XXsXXX",
    "name": "地基与基础2",
    "children":[
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      }, {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
    ]
  }];

  var $tree = $("#tree"), zTreeObj;
  function init() {
    zTreeObj = $.fn.zTree.init($tree, {
      data: {
        key: {
          name: "name",
          code: "code"
        },
      },
      edit: {
        drag: {
          prve: true,
          next: true
        },
        enable: true,
        showRemoveBtn: setRemoveBtn,
        showRenameBtn: setRenameBtn,
        removeTitle: "删除节点",
        enameTitle: "编辑节点名称",
      },
      view: {
        addHoverDom: addHoverDom,
        removeHoverDom: removeHoverDom,
        // showLine: false
      },
      callback: {
        // onCheck: onCheck,
        // onClick:onClick
      }
    }, treeData);
  }
  init();
  function addHoverDom(treeId, treeNode) {
    var aObj;
    var addStr = "<span class='button add' id=" + treeNode.tId + "_add title='添加子节点' onclick=''></span>";
    if (treeNode.tId === 'tree_1') {
      aObj = $("#" + treeNode.tId + "_span");
      if (aObj.next().hasClass('add')) return;
      aObj.after(addStr);
    } else {
      aObj = $("#" + treeNode.tId + "_edit");
      if (aObj.prev().hasClass('add')) return;
      aObj.before(addStr);
    }
    var btn = $("#" + treeNode.tId + "_add");
    if (btn) btn.bind("click", function () {
      var newNode = {name: ""};
      var newNodez = zTreeObj.addNodes(treeNode, newNode);
      zTreeObj.editName(newNodez[0]);
    });
  }
  function removeHoverDom(treeId, treeNode) {
    $("#" + treeNode.tId + "_add").unbind().remove();
  }
  function setRemoveBtn(treeId, treeNode) {
    return treeNode.tId !== 'tree_1';
  }
  function setRenameBtn(treeId, treeNode) {
    return treeNode.tId !== 'tree_1';
  }
  $('#addTree').click(function () {
    var bObj=$("#tree_1_span");
    console.log(bObj)
    var addStr = "<span class='button add' id=" + treeNode.tId + "_add title='添加子节点' onclick=''></span>";
    if (bObj.next().hasClass('add')) return;
    bObj.after(addStr);

  })
</script>
</body>
</html>
